package demo3;

public class Duck extends Animal implements Iswimming,Iruning,Iflying{
    public Duck(String name, int age) {
        super(name, age);
    }

    public void fly(){
        System.out.println(this.name+" 正在飞ing");
    }


    @Override
    public void run() {
        System.out.println(this.name+" 正在跑ing");
    }

    @Override
    public void swim() {
        System.out.println(this.name+" 正在游泳ing");
    }
}
